package com.marshall.scstudy.controller;

import com.marshall.scstudy.feign.PaymentHystrix8001Feign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by
 *
 * @author : Marshall
 * @datetime: 2021/11/5 10:45
 */
@RestController
@Slf4j
public class OrderController {

    @Resource
    PaymentHystrix8001Feign paymentHystrix8001Feign;

    @GetMapping("/order/hystrix/out/{id}")
    public String paymentinfoout(@PathVariable("id") Integer id){
        return paymentHystrix8001Feign.paymentinfoout(id);
    }

}
